package com.xyz.eduservice.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 嵌套 课程分类
 * @author zsr
 * @date 2021/6/11 20:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SubjectNestedVo {
    private String id;
    
    private String parentId;
    private String title;

    //一个一级分类有多个二级分类
    private List<SubjectVo> children=new ArrayList<>();
}